package com.jac.alapores.dao;

import java.util.List;

import com.jac.alapores.domain.Territory;

public class TerritoryRepository
extends BaseRepository 
{
	public List<Territory> getAll()
	{
		return getService().query(Territory.class).list();
	}
	
	public void create(Territory category)
	{
		getService().put(category);		
	}
	
	public void deleteById(Long pId)
	{
		getService().delete(Territory.class, pId);
	}
	
	public Territory getById(Long pId)
	{
		return getService().get(Territory.class, pId);
	}
}
